<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>新增账目</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	color:#000;
	text-decoration: none;
}
a:hover {
	color:#CA5466;
	text-decoration:underline;
}
.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}

.td_bg {
	font-size: 14px;
	background: #fff;
	border: 1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	height: 40px;
	border: 1px solid #6495ED;
}

.table {
	margin-top: 10px;
}
input {

}
-->
</style>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/checkUtil.js"></script>
		<script type="text/javascript" src="js/WebCalendar.js"></script>

	</head>

	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：
															[团队账目]-[账目留言板]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td>
																	&nbsp;
																</td>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1">
																	<br>
																</td>
																<td class="STYLE1">
																	<br>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<table width="700" align="center" style="padding:20px;border:3px dashed #ac341b;">
									<tr>
										<td style="padding:20p;">
											知通团队<font style="margin-left:20px;color:#ac12da;font-weight:bold;font-size:40px;">账目留言板</font>
											<div align="right">——欢迎大家留下对团队账目的疑惑和建议</div>
										</td>
									</tr>
								</table>
								<table border="0" width="81%" >
									<tr>	
										<td align="right">
											<span  class="STYLE1" style="cursor:pointer;" onmouseover="this.style.color='#CA5466';this.style.textDecoration='underline';"
												onmouseout="this.style.color='#000';this.style.textDecoration='none';"
												onclick="window.location.hash= 'liuyan'">
													我要留言
											</span>
										</td>
									</tr>
								</table>
									<table class="table" border="1" width="700" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED" >
										<tbody>

											<tr>
												<td class="td_x_bg" width="120px">
													<nobr>
														留言者
													</nobr>
												</td>
												<td class="td_x_bg" style="text-align:left;padding-left:20px;">
													<nobr>
														内容
													</nobr>
												</td>
												<s:if test="#session.user.post in {3,4}" >
													<td class="td_x_bg" width="50px">
													<nobr>
														操作
													</nobr>
												</td>
												</s:if>
												
											</tr>
											<s:iterator value="messages" var="messages" status="status">
											<tr>
												<td class="td_bg" width="120px">
													<nobr>
														<s:property value="#status.count + (page.currentPage-1)*page.pageSize" />..
															<a href="front/getMemberInfo.action?user.id=<s:property value="#messages.user.id" />" >
																<b><s:property value="#messages.user.name" /></b>
															</a>
													</nobr>
												</td>
												<td class="td_bg">
														<div>
														<s:property value="#messages.content" escape="false"/>
														</div>
													<br />
													<span style="float:right;">时间：<s:date name="#messages.mesTime" format="yyyy年MM月dd日 hh:mm:ss" nice="false"/></span>
												</td>
												<s:if test="#session.user.post in {3,4}" >
													<td class="td_bg" style="padding:0;font-weight:normal;font-size:11px;text-align:center;">
													<nobr>
														<span style="background:url(images/main/del.gif) 0 -2px no-repeat;padding-left:14px;"><a href="front/deleteMessage.action?message.id=<s:property value="#messages.id"/>" onclick="return confirm('确认删除？');">删除</a></span>
													</nobr>
												</td>
												</s:if>
											</tr>
											</s:iterator>
									</table>
									<form action="front/accountMessage.action" method="get" Style="margin:0">
										<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
											<tr>
												<td class="STYLE4">
													&nbsp;&nbsp;共有 <s:property value="page.rowCount" /> 条记录，
													当前第 <s:property value="page.currentPage" /> / <s:property value="page.pageCount" /> 页
												</td>
												<td>
													<table border="0" align="right" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="40">
																<a href="front/accountMessage?page.currentPage=1"><img src="images/main/first.gif"
																		width="37" height="15" border="0" />
																</a>
															</td>
															<s:if test="page.currentPage != 1" >
															<td width="45">
																<a href="front/accountMessage?page.currentPage=<s:property value="page.currentPage - 1" />"><img src="images/main/back.gif"
																		width="43" border="0" height="15" />
																</a>
															</td>
															</s:if>
															<s:if test="page.currentPage != page.pageCount" >
															<td width="45">
																<a href="front/accountMessage?page.currentPage=<s:property value="page.currentPage + 1" />"><img src="images/main/next.gif"
																		width="43" border="0" height="15" />
																</a>
															</td>
															</s:if>
															<td width="40">
																<a href="front/accountMessage?page.currentPage=<s:property value="page.pageCount" />""><img src="images/main/last.gif"
																		border="0" width="37" height="15" />
																</a>
															</td>
															<td width="100">
																<div align="center">
																	<span class="STYLE1">转到第 <input name="page.currentPage"
																			type="text" size="4"
																			style="height: 12px; width: 20px; border: 1px solid #999999;" />
																		页 </span>
																</div>
															</td>
															<td width="40">
																<input type="image" src="images/main/go.gif" width="37"
																	height="15" />
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</form>
									<a name="liuyan"></a>
									<form action="front/addAccountMessage.action" method="post" >
									<table class="table" border="1" width="700" align="center"
										cellpadding="2" cellspacing="2" bordercolor="#6495ED">
										<tbody>

											<tr>

												<td class="td_x_bg" colspan="2">
													<nobr>
														__我要留言__
													</nobr>
												</td>
											</tr>
											<tr>
												<td class="td_bg" width="120px" style="text-align:center;padding-top:20px;" valign="top" >
													<nobr>
														<img src="<s:property value="#session.user.headImg.imgSrc" />" width="100"  />
													</nobr>
												</td>
												<td class="td_bg" >
													<script src="/ztmStruts2/FCKeditor/fckeditor.js" ></script>
													<script>
											            var editor = new FCKeditor('message.content');
											            editor.BasePath = '/ztmStruts2/FCKeditor/';
											            editor.Height = 200;
											            editor.Width = 550;
											            editor.ToolbarSet = 'answer';
											            editor.Create();
											         </script>
												</td>
											</tr>
											<tr>
												<td class="td_bg" colspan="2">
													<input type="hidden" name="message.user.id" value="<s:property value="#session.user.id"/>" />
													<input type="submit" value="发表留言" style="width:80px;height:35px;margin-left:130px;" /> 
													<input type="reset" value="重写" style="width:80px;height:35px;margin-left:40px;" /> 
												</td>
											</tr>
										</tbody>
									</table>
									</form>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												&nbsp;
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
